package com.nuit.cxl.mybatisdemo.service;

import com.nuit.cxl.mybatisdemo.dao.AccountDao;
import com.nuit.cxl.mybatisdemo.domain.TblAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public void save(TblAccount account) {
        accountDao.save(account);
    }
    @Override
    public TblAccount findById(Integer id) {
        return accountDao.findById(id);
    }
}

